package com.share.tool.mock.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2023-11-23
 */
@Data
@Accessors(chain = true)
@TableName("mc_db_variable")
public class DbVariable implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 表名
     */
    @TableField(value = "table_name")
    private String tableName;
    /**
     * 表名列名
     */
    @TableField(value = "column_name")
    private String columnName;
    /**
     * 变量名-variable表中code值
     */
    private String variable;
    private String descript;
    /**
     * 是否有效，取值1有效，0无效
     */
    @TableField(value = "is_valid")
    private Integer isValid;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

}
